package com.hu.system.domain;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hu.common.annotation.Excel;
import com.hu.common.core.domain.BaseEntity;

/**
 * 备货出库对象 stock_outbound
 *
 * @author hu
 * @date 2025-01-21
 */
public class StockOutbound extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 出库ID
     */
    @ExcelIgnore
    private Long outboundId;

    /**
     * SKU编码
     */
    @Excel(name = "Sku")
    private String sku;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /**
     * SKU属性
     */
    @Excel(name = "Sku属性")
    private String skuAttr;

    /**
     * SKU货号（非数据库字段，从product_info关联查询）
     */
    @Excel(name = "SKU货号")
    private String skuCode;

    /**
     * 所属店铺ID
     */
    @ExcelIgnore
    private Long shopId;

    /**
     * 出库数量
     */
    @Excel(name = "备货数量")
    private Integer outboundQuantity;

    /**
     * 物流费用
     */
    @Excel(name = "物流费用")
    private java.math.BigDecimal logisticsFee;

    /**
     * 出库日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "备货发出日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date outboundDate;

    /**
     * 删除标志
     */
    @ExcelIgnore
    private String delFlag;

    /**
     * 店铺名称（非数据库字段）
     */
    @ExcelIgnore
    private String shopName;

    /**
     * 备货单号
     */
    @Excel(name = "备货单号")
    private String stockOrderNo;

    /**
     * 已退货数量（非数据库字段）
     */
    @ExcelIgnore
    private Integer returnedQuantity;

    /**
     * 可退货数量（非数据库字段）
     */
    @ExcelIgnore
    private Integer availableReturnQuantity;

    // Getters and Setters
    public Long getOutboundId() {
        return outboundId;
    }

    public void setOutboundId(Long outboundId) {
        this.outboundId = outboundId;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSkuAttr() {
        return skuAttr;
    }

    public void setSkuAttr(String skuAttr) {
        this.skuAttr = skuAttr;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getOutboundQuantity() {
        return outboundQuantity;
    }

    public void setOutboundQuantity(Integer outboundQuantity) {
        this.outboundQuantity = outboundQuantity;
    }

    public java.math.BigDecimal getLogisticsFee() {
        return logisticsFee;
    }

    public void setLogisticsFee(java.math.BigDecimal logisticsFee) {
        this.logisticsFee = logisticsFee;
    }

    public Date getOutboundDate() {
        return outboundDate;
    }

    public void setOutboundDate(Date outboundDate) {
        this.outboundDate = outboundDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getStockOrderNo() {
        return stockOrderNo;
    }

    public void setStockOrderNo(String stockOrderNo) {
        this.stockOrderNo = stockOrderNo;
    }

    public Integer getReturnedQuantity() {
        return returnedQuantity;
    }

    public void setReturnedQuantity(Integer returnedQuantity) {
        this.returnedQuantity = returnedQuantity;
    }

    public Integer getAvailableReturnQuantity() {
        return availableReturnQuantity;
    }

    public void setAvailableReturnQuantity(Integer availableReturnQuantity) {
        this.availableReturnQuantity = availableReturnQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("outboundId", getOutboundId())
                .append("sku", getSku())
                .append("productName", getProductName())
                .append("skuAttr", getSkuAttr())
                .append("skuCode", getSkuCode())
                .append("shopId", getShopId())
                .append("outboundQuantity", getOutboundQuantity())
                .append("logisticsFee", getLogisticsFee())
                .append("outboundDate", getOutboundDate())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}

